package com.salton123.qa.demo;

import android.app.Activity;
import android.os.Bundle;
import android.os.SystemClock;
import android.view.View;
import android.widget.Toast;

/**
 * User: newSalton@outlook.com
 * Date: 2018/10/10 3:56 PM
 * ModifyTime: 3:56 PM
 * Description:
 */
public class TestBlockAty extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test_block);
        findViewById(R.id.tvTestBlock).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                // MyUtil.reg();
                // String str = "12-01 17:48:55.145";
                // Util.INSTANCE.reg();
                try {
                    // Thread.sleep(8 * 1000);
                    SystemClock.sleep(10000);
                } catch (Exception e) {
                    e.printStackTrace();
                }

                Toast toast = Toast.makeText(getApplicationContext(), "点击完成", Toast.LENGTH_LONG);
                toast.show();

            }
        });
    }
}